package com.cjkj.equipment.mapper;


import com.cjkj.equipment.domain.EquipmentTJ03MonitorRecords;
import com.cjkj.equipment.domain.dto.EquipmentHistoryDataRequest;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 设备监测数据记录Mapper接口
 */
public interface EquipmentTJ03MonitorRecordsMapper {

    /**
     * 新增设备监测数据记录
     * 
     * @param monitorRecords 设备监测数据记录
     * @return 结果
     */
    int insertTJ03MonitorRecords(EquipmentTJ03MonitorRecords monitorRecords);

    List<EquipmentTJ03MonitorRecords> selectTJ03Records(EquipmentHistoryDataRequest request);

    EquipmentTJ03MonitorRecords selectLastRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
    EquipmentTJ03MonitorRecords selectLastBPDataIsNotNullRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
    EquipmentTJ03MonitorRecords selectLastBPTTDataIsNotNullRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
    EquipmentTJ03MonitorRecords selectLastWStateDataIsNotNullRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
    EquipmentTJ03MonitorRecords selectLastRestHeartDataIsNotNullRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
    EquipmentTJ03MonitorRecords selectLastEcgPatchStatusDataIsNotNullRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
    EquipmentTJ03MonitorRecords selectLastEcgPatchPlginStatusDataIsNotNullRecord(@Param("equipmentNo") String equipmentNo,@Param("startTime") Date startTime);
}
